package my.avoskagae.service.rpc.client;

import java.util.List;

import my.avoskagae.model.AvoskaModelException;
import my.avoskagae.model.entity.Product;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("avoskaServiceRPC")
public interface AvoskaServiceRPC extends RemoteService {

	Product createProduct(String name) throws AvoskaModelException;

	List<Product> getProducts() throws AvoskaModelException;

	boolean removeProduct(Product product) throws AvoskaModelException;

	Product renameProduct(Product product, String newName) throws AvoskaModelException;
	
	Product switchNeedPurchase(Product product, Boolean newNeedPurchase);

}
